from django.contrib import admin

# Register your models here.

from .models import StaticFile


class StaticFileAdmin(admin.ModelAdmin):
    change_list_template = "test/model_list.html"    # 就是它
    search_fields = ('name', 'url')
    fields = ('name', 'url')
    list_display = ('name', 'url', 'create_time')
    actions_on_top = False


admin.site.register(StaticFile, StaticFileAdmin)